import request from "@/utils/request";

// 查询门诊收费记录明细列表 (分页)
export function selectPageOutpFeesDetail(query) {
    return request({
        url: "/business/outpFeesDetail/selectPage",
        method: "get",
        params: query,
    });
}

// 查询门诊收费记录明细列表 (不分页)
export function listOutpFeesDetail(query) {
    return request({
        url: "/business/outpFeesDetail/list",
        method: "get",
        params: query,
    });
}

// 查询门诊收费记录明细详细
export function getOutpFeesDetail(outpFeesDetailId) {
    return request({
        url: "/business/outpFeesDetail/" + outpFeesDetailId,
        method: "get",
    });
}

// 新增门诊收费记录明细
export function addOutpFeesDetail(data) {
    return request({
        url: "/business/outpFeesDetail",
        method: "post",
        data: data,
    });
}

// 修改门诊收费记录明细
export function updateOutpFeesDetail(data) {
    return request({
        url: "/business/outpFeesDetail",
        method: "put",
        data: data,
    });
}

// 删除门诊收费记录明细
export function delOutpFeesDetail(outpFeesDetailId) {
    return request({
        url: "/business/outpFeesDetail/" + outpFeesDetailId,
        method: "delete",
    });
}
